package UIFree {
	import flash.events.Event;

	public class ObjectEvent extends Event {
		private var _obj: Object;
		
		public var result: Object;
		
		public function ObjectEvent(type:String, a_obj: Object, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_obj = a_obj;
		}
		
		public function get object(): Object {
			return _obj;
		}

		public function get integer(): int {
			return int(_obj);
		}
		
		public function get number(): Number {
			return Number(_obj);
		}
		
		public function get string(): String {
			return String(_obj);
		}
		
	}
}